LVPE: Avidemux and JPEG Photo AVI files not working?
I recently edited together a video for a friend and tried to bring it into Avidemux using the process I outlined earlier, but to no avail — a new build of Avidemux for Ubuntu refused to read the JPEG Photo codec files I outputted from Cinelerra. Not wanting to have to mess with export formats from Cinelerra again, I decided instead to join all of the AVI files using ffmpeg and named pipes and make one big high quality MPEG-2 file that I would then convert into a DVD ready MPEG-2 file using Avidemux. The bash script I used was (be sure to convert HTML entities as needed if you copy and paste):
# clean up any leftover ffmpeg processes that may be using the fifos
pkill ffmpeg
for final_file in final-*.avi; do
fifo_file="fifo-${final_file}.mpg"
rm $fifo_file
mkfifo $fifo_file
ffmpeg -i "$final_file" -f dvd -sameq \
-b 10000000 -ab 256000 -vcodec mpeg2video \
-acodec mp2 -y "$fifo_file" < /dev/null &
done
cat fifo-*.mpg |\ ffmpeg -i - -i final-audio.wav \ -f dvd \ -vcodec mpeg2video \ -acodec mp2 \ -sameq \ -aspect 16:9 -y \ -b 10000000 -ab 256000 \ -map 0:0 -map 1:0 \ -r 23.976 \ final_video.mpg
