I've run into an issue trying to do a bulk conversion. I posted a complete question on SO (https://stackoverflow.com/questions/...r-using-ffmpeg) and someone answered in a comment thread, but hasn't posted again and his code doesn't run aparrantly.
I'm trying to visit all files in a 'master' directory and convert them to .mp4 for space-saving on an external HDD. This can be accomplished using ffmped somefile.vob somefile.mp4. This is described in more detail in the post. The code that he suggested o do this is
But this gives the error message:
I'm not sure if anyone here is familiar with this type of format, but at worst I could just go and make a custom java program to do it.
I'm trying to visit all files in a 'master' directory and convert them to .mp4 for space-saving on an external HDD. This can be accomplished using ffmped somefile.vob somefile.mp4. This is described in more detail in the post. The code that he suggested o do this is
Code:
[FONT=monospace][COLOR=#000000]shopt -s globstar; for v1 in **/*.vob; do v2=$(awk -F'/' '{print "/media/sa[/COLOR]rah/SENTINEL/Videos/NewMaster" $(NF-1) " - " $NF ".mp4"}' <<< "$v1"); ffmpeg -i "$v1" "$v2"; done
[/FONT]
Code:
[FONT=monospace][COLOR=#54FF54][B]sarah@ConvergentRefuge[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]/media/sarah/SENTINEL/MEA[/B][/COLOR][COLOR=#000000]$ shopt -s globstar; for v1 in **/*.vob; do v2=$(awk -F'/' '{print "/media/sa[/COLOR]
rah/SENTINEL/Videos/NewMaster" $(NF-1) " - " $NF ".mp4"}' <<< "$v1"); ffmpeg -i "$v1" "$v2"; done
ffmpeg version N-91290-g6129b13 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/home/sarah/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/sarah/ffmpeg_build/incl
ude --extra-ldflags=-L/home/sarah/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/sarah/bin --enable-gpl --enabl
e-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 20.102 / 58. 20.102
libavformat 58. 17.100 / 58. 17.100
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 25.100 / 7.
25.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[COLOR=#ff0000]**/*.vob: No such file or directory[/COLOR]
[/FONT]




Comment