
I have tried a few permutations of my script, such as: ffmpeg -i "$file" "$noextension"Īnd ffmpeg -y -i "$file" -vcodec mpeg4 -acodec libfaac "$noextension"īut those both give me the following error: Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height I've read through but the error message from ffmpeg doesn't seem very helpful, and resources are sparse at best when it comes to running this stuff on a Synology Box. The XBox support website gives details on supported file types, with mp4 included in the H.264 standard:

Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo (default)Īv_interleaved_write_frame(): Invalid data found when processing input and then a list of output chapter start and end times and then. and then a list of input chapter start and end times and then. Estimating duration from bitrate, this may be inaccurate The following is an example of the output for a failed run: ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developersĬonfiguration: -prefix=/usr/syno -arch=i686 -target-os=linux -cross-prefix=/usr/local/i686-linux-gnu/bin/i686-linux-gnu-enable-cross-compile -enable-optimizations -disable-yasm -disable-altivec -enable-pic -enable-shared -disable-static -disable-swscale-alpha -disable-ffserver -disable-ffplay -enable-libmp3lame -enable-libfaac -enable-nonfree -enable-version3 -enable-libopencore-amrnb -enable-libopencore-amrwb -disable-decoder=amrnb -disable-indev=alsa -disable-outdev=alsa -disable-encoder=dca -disable-encoder=ac3 -disable-encoder=ac3_fixed -disable-encoder=ac3_float -disable-encoder=eac3 -disable-decoder=dca -disable-decoder=eac3 -disable-decoder=truehd -cc=/usr/local/i686-linux-gnu/bin/i686-linux-gnu-ccache-gcc This has worked for several of my files, but there are a number for which this does not work.

Which, as I understand it, simply copies the audio and video components within the mkv container, and inserts them into a new mp4 container.

I'm very rusty on Linux and new to transcoding, but the script I currently have is the following: #!/bin/bashįfmpeg -y -i "$file" -vcodec copy -acodec copy "$noextension" I use Handbrake on my laptop, but I would rather have this happen directly on my NAS. mkv movies which I would like to convert/transcode to mp4 files, so that I can stream them directly to my XBox 360. I recently purchased a Synology Diskstation DS412+, and I have a number of.
