[FFmpeg-user] problems with cutting a video - resulting file is 254 bytes of size

2018-06-14 Thread Adi Marvillo
Hi everybody,

I am trying to shorten a video to the relevant part - cut the first 25
seconds at the beginning and cut/stop at 01min 25sec  - output is a file
254 bytes of size - looks a little bit like a binary...
Anybody knows what is wrong here?
Thx

adi@jupiter:~/Videos/test$ ffmpeg -i oldvid.mp4 -ss 00:24:50 -t 00:01:25
-c:a copy -c:v copy newvid.mp4
ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libebur128 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzmq --enable-libzvbi --enable-omx --enable-openal
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264
--enable-shared
  libavutil  55. 34.101 / 55. 34.101
  libavcodec 57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter 6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale  4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldvid.mp4':
  Metadata:
    major_brand : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-11-10T11:04:23.00Z
  Duration: 00:06:58.98, start: 0.00, bitrate: 295 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 196 kb/s, 29.87 fps,
30 tbr, 30 tbn, 60 tbc (default)
    Metadata:
  handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 95 kb/s (default)
    Metadata:
  creation_time   : 2016-11-10T11:04:24.00Z
  handler_name    : IsoMedia File Produced by Google, 5-11-2011
File 'newvid.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'newvid.mp4':
  Metadata:
    major_brand : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder : Lavf57.56.101
    Stream #0:0(und): Video: h264 (Constrained Baseline) ([33][0][0][0]
/ 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 196 kb/s, 29.87
fps, 30 tbr, 15360 tbn, 30 tbc (default)
    Metadata:
  handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100
Hz, stereo, 95 kb/s (default)
    Metadata:
  creation_time   : 2016-11-10T11:04:24.00Z
  handler_name    : IsoMedia File Produced by Google, 5-11-2011
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    0 fps=0.0 q=-1.0 Lsize=   0kB time=00:00:00.00 bitrate=N/A
speed=   0x   
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Chapters in mkv

2018-03-15 Thread Adi Marvillo
Hi, does anybody know how to map chapters into the conversion of a
video? I'd like to have a chapter interval of 7:00 min. Has anybody
worked with the -map_chapter option already? How do I integrate the
chapter-mark information into the command? My basic basic command would be
[code]
ffmpeg -i ./movie.VOB -g 25 -keyint_min 3 -aspect "16:9" -map v:0 -c:v
libx264 -map a:0 -c:a copy ~/new_movie.mkv
[/code]
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] strange video cut

2018-03-14 Thread Adi Marvillo
Hi everybody, I cut a .vob file with ffmpeg. First I tried it without
defining audio or video encoders - I thought that ffmpeg copies the
tracks in this case, but apparently it does not...
Enforced audio and video track to be copied the resulting file is much
bigger in size - see testfile_big.vob in the .zip: https://we.tl/pcAJzcR4QH

ffprobe does not show any difference in the file-specs: not with the
encoder nor in resolution although the small video has bad quality- Does
anybody know what is the differnce between the 2 files and why ffmpeg
keeps telling me that everyting is the same in both files?
both cutting commands:
ffmpeg -i Video.vob -ss 00:10:00 -t 00:00:20
~/Dokumente/test/testfile_small.vob
ffmpeg -i Video.vob -ss 00:10:00 -t 00:00:20 -c:v copy -c:a copy
~/Dokumente/test/testfile_big.vob
 
Thanks Adi
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?

2018-03-13 Thread Adi Marvillo
Am 2018-03-11 um 08:39 schrieb Farhad Mohammadi Majd:
> Al right, I did install both Mplayer and MEncoder.
>
> on 2018-03-08--12:01:13 Adi Marvillo wrote:
>
>> [code]
>> mplayer dvd://TITLE -dumpstream -dumpfile ~/media/movie.vob # be sure
>> to
>> select the correct TITLE - in this case it would be 1
> I test the command but it was unsuccessful because it is wrong, the
> switch "-dumpfile" should be removed, also there is no ~/media/
> directory by default, after fix the command, mplayer saved the whole
> DVD into "stream.dump" with all subtitles.
>
>> [code]
>> ffmpeg -i ~/media/movie.vob -g 25 -keyint_min 3 -map 0:v
>> -c:v libx264 -map 0:a -c:a copy  OUTPUTFILE.mkv
>> [/code]
> What does it do?
> on 2018 Mar 8 22:49:17 Nicolas George wrote:
>
>> MEncoder can extract them.
> Please explain how to do that.
>
> THANKS
>
> ==  OFF-TOPIC  ==
> The name of this film is "Home Movie (2008)"
>
> https://en.wikipedia.org/wiki/Home_Movie_(film)
>
> It is a good and odd horror film, I recommend to watch it.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

I can't support you with anything with this information. Please provide
[code] ffprobe stream.dump [/code]. Look the used ffmpeg codecs
(libx264) up in the Documentation. cheers
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] use question

2018-03-08 Thread Adi Marvillo


Am 2018-03-08 um 14:33 schrieb Vuerstaek, Maarten (EC):
> Hi everyone,
>
> I'm trying to do something simple that I can't find the documentation for.  I 
> want to get all the video-files from a folder and cut them all into frames, 
> all together in 1 folder.
> I am opening ffmpeg in powershell and using this command
> .\ffmpeg.exe -i 
> C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\03072018\video.mp4
>  
> C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\pics2\frame%d.png
>
> Which works fine for a single video, but I have about a 100 a day, so I need 
> a better solution.
>
> Thanks in advance guys!
> Maarten Vuerstaek
> IT Support
> [cid:image002.png@01D2F4AB.E232CA10]
> Avnet Logistics
> Limesweg 4
> 3700 Tongeren
> BELGIUM
> +32 12 242 888
> it-iso-tonge...@avnet.eu
>
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
I do not exactly understand what you want to do, but echo-ing or
performing a operation with all files in a directory runs like this in
linux shell == powershell:

>>> find . -name "*.mp4" -exec echo {} \;        # "." after "find "
means the actual directory
>>> find . -name "*.mp4" -exec ffmpeg  -i{} blabla \;

Cheers
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] h264 and opus in mp4 container

2018-02-26 Thread Adi Marvillo
Hi Vittal, what you want do do is called multiplexing after you have 
demultiplexed/seperated your video- and audiotrack from a stream.
https://superuser.com/questions/429643/how-can-i-multiplex-a-video-and-audio-stream

ffmpeg can do demultiplexing-> conversion of audio track-> multiplexing A+V in 
one step with

ffmpeg -i INPUTFILE.mp4 -map 0:v -c:v libx264 -map 0:a -c:a libopus 
OUTPUTFILE.mp4

INPUTFILE means your original input.mp4 (sample.mp4). Be aware that you're 
loosing quality when converting your audio track from one format (aac) into the 
other lossy format (opus) if you're not planning to do something special 
with the opus-track, just leave it as it is with copy -map 0:a -c:a copy

regards adi



Am 2018-02-26 um 05:36 schrieb Vittalprasad:
>  Hi All,
> From below link i saw that mp4 container can have h264 as video codec and
> opus as audio codec. so i tried  both codecs in to mp4 using ffmpeg, but
> external player like mplayer, vlc and kmp are failing to decode voice . i.e
> while playing mp4 file there is only video no voice.
> https://en.wikipedia.org/wiki/Comparison_of_video_container_formats
>
> Procedure followed using ffmpeg:
> 1. From sample mp4 file, i have separated audio(aac codec) and video(h264)
> in to different files .
> 2. aac trans-coded to opus
> 3. tried to merge video and audio(opus) in to single mp4
>
>
> please let me know
> 1. whether ffmpeg support above codecs in single mp4 file or issue with
> external player .
>
> If anyone has  mp4 file with h264 and opus codecs please provide me along
> with procedure to convert.
>
>

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Rip DVD with ffmpeg

2018-02-24 Thread Adi Marvillo


Am 2018-02-22 um 14:43 schrieb Nicolas George:
> Adi Marvillo (2018-02-22):
>> Thanks Steve and ZikZak. I've dumped the DVD with mencoder onto the HDD
>> but the chapters are still lost. I thought the chapter marks are stored
>> in Stream #0:0 below but they are not as VLC nor ffprobe don't show them...
>> I wanted to process the vob-file with ffmpeg afterwards ;)
>> FYI: I didn't encode anything in this dumping-step in order not to loose
>> quality.
>> I don't understand where the chapter information is stored in the DVDs.
>> Anybody knows?
> On DVDs, the chapter information, like all the rest of the metadata
> (language of the streams, palette of the subtitles, etc.), is stored in
> the IFO files. MPlayer can read them when reading the DVD directly
> through libdvdread/libdvdcss. FFmpeg, on the other hand, does not know
> how to read DVDs directly, and the information is not present in the VOB
> files.
>
> Also, concatenating the VOB files like you did will not work correctly,
> due to timestamps resets and menu data interleaved with the actual video
> data. You can use the "dvd2concat" script distributed along with FFmpeg
> to generate a concat script that only takes the relevant part of the VOB
> files and controls the timestamp resets. It does not handle chapters,
> but that could be added with a little effort.
>
>> Am 2018-02-21 um 17:27 schrieb Steve Boyer:
> Please remember that top-posting is forbidden on this list. If you do
> not know what it means, look it up.
>
> Regards,
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Hi Nicolas, thanks for your support!
Meanwhile I managed to extract the chapterinformation with the command
"mplayer dvd://TITLE -identify >> chapterfile.txt". This command dumps
all metainformation of the current title into chapterfile.txt. TITLE has
to be replaced by the number indicating the correct title on the current
source - in this case it's 7 .
I think this is "ID_DVD_TITLE_8_CHAPTERS=38" in chapterfile.txt (see
below) when beginning to count with the index 0 instead of
ID_DVD_TITLE_1_CHAPTERS=5

Here a part of chapterfile-dump:
adi@HOST:/media/adi/bd29891a-00d1-42f2-997c-6d3073626884/Videos/monsterBox$
cat chapterfile.txt
MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
Playing dvd://11.
ID_DVD_TITLES=15
ID_DVD_TITLE_1_CHAPTERS=5
ID_DVD_TITLE_1_ANGLES=1
ID_DVD_TITLE_2_CHAPTERS=11
ID_DVD_TITLE_2_ANGLES=1
ID_DVD_TITLE_3_CHAPTERS=4
ID_DVD_TITLE_3_ANGLES=1
ID_DVD_TITLE_4_CHAPTERS=4
ID_DVD_TITLE_4_ANGLES=1
ID_DVD_TITLE_5_CHAPTERS=5
ID_DVD_TITLE_5_ANGLES=1
ID_DVD_TITLE_6_CHAPTERS=3
ID_DVD_TITLE_6_ANGLES=1
ID_DVD_TITLE_7_CHAPTERS=2
ID_DVD_TITLE_7_ANGLES=1
ID_DVD_TITLE_8_CHAPTERS=38
ID_DVD_TITLE_8_ANGLES=1
ID_DVD_TITLE_9_CHAPTERS=3
ID_DVD_TITLE_9_ANGLES=1
ID_DVD_TITLE_10_CHAPTERS=3
ID_DVD_TITLE_10_ANGLES=1
ID_DVD_TITLE_11_CHAPTERS=14
ID_DVD_TITLE_11_ANGLES=1
ID_DVD_TITLE_12_CHAPTERS=3
ID_DVD_TITLE_12_ANGLES=1
ID_DVD_TITLE_13_CHAPTERS=3
ID_DVD_TITLE_13_ANGLES=1
ID_DVD_TITLE_14_CHAPTERS=3
ID_DVD_TITLE_14_ANGLES=1
ID_DVD_TITLE_15_CHAPTERS=3
ID_DVD_TITLE_15_ANGLES=1
ID_DVD_TITLE_1_LENGTH=5.000
ID_DVD_TITLE_2_LENGTH=174.960
ID_DVD_TITLE_3_LENGTH=74.960
ID_DVD_TITLE_4_LENGTH=74.960
ID_DVD_TITLE_5_LENGTH=99.960
ID_DVD_TITLE_6_LENGTH=49.960
ID_DVD_TITLE_7_LENGTH=127.920
ID_DVD_TITLE_8_LENGTH=258.960
ID_DVD_TITLE_9_LENGTH=138.400
ID_DVD_TITLE_10_LENGTH=170.040
ID_DVD_TITLE_11_LENGTH=6092.080
ID_DVD_TITLE_12_LENGTH=138.880
ID_DVD_TITLE_13_LENGTH=126.760
ID_DVD_TITLE_14_LENGTH=100.040
ID_DVD_TITLE_15_LENGTH=128.000
ID_DVD_DISC_ID=5FFA8A29BAAD6646A0683DA76B86EC39
ID_DVD_VOLUME_ID=XX
There are 15 titles on this DVD.

ID_DVD_CURRENT_TITLE=11
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: de aid: 128.

ID_AUDIO_ID=128
ID_AID_128_LANG=de
number of audio channels on disk: 1.
subtitle ( sid ): 0 language: de

ID_SUBTITLE_ID=0
ID_SID_0_LANG=de
number of subtitles on disk: 1

CHAPTERS:
00:00:00.000,00:07:30.720,00:14:29.280,00:24:08.640,00:32:42.240,00:41:30.400,00:49:51.040,00:57:35.200,01:05:51.040,01:11:55.360,01:19:26.560,01:25:59.200,01:30:36.640,01:35:31.840,
ID_VIDEO_ID=0
MPEG-PS file format detected.
ID_AUDIO_ID=128
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)

Please see the line beginning with "CHAPTERS:"
Interesting: The chaptermarks are exactly 5 sec too late - might be
because of "ID_DVD_TITLE_1_LENGTH=5.000" in chapterfile.txt - anyhow I
don't understand it, but I accept it.

After ripping the XXX.vob with ffmpeg to an XXX.mkv the chaptermarks can
easily be in

Re: [FFmpeg-user] Rip DVD with ffmpeg

2018-02-22 Thread Adi Marvillo
Thanks Steve and ZikZak. I've dumped the DVD with mencoder onto the HDD
but the chapters are still lost. I thought the chapter marks are stored
in Stream #0:0 below but they are not as VLC nor ffprobe don't show them...
I wanted to process the vob-file with ffmpeg afterwards ;)
FYI: I didn't encode anything in this dumping-step in order not to loose
quality.

used commands:
mplayer dvd://11 -nocache dvdnav://11 -dumpstream -dumpfile
~/Videos/movienav.vob
adi@HOST ~/Videos $ ffprobe movienav.vob

ffprobe version 3.2.10-1~deb9u1 Copyright (c) 2007-2018 the FFmpeg
developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libebur128 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzmq --enable-libzvbi --enable-omx --enable-openal
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264
--enable-shared
  libavutil  55. 34.101 / 55. 34.101
  libavcodec 57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter 6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale  4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mpeg, from 'movienav.vob':
  Duration: 01:00:01.57, start: 0.287267, bitrate: 12514 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top
first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s


I don't understand where the chapter information is stored in the DVDs.
Anybody knows?
@ZikZak: How do you preserve the chapter marks with mencoder dumping a DVD?

I'd preferably use an commandline-tool but as it seems the next step for
me would be to try makeMKV - the newest Linux Version I found ist from
year 2009 - is this correct?
CU Adi


Am 2018-02-21 um 17:27 schrieb Steve Boyer:
> On Wed, Feb 21, 2018 at 10:06 AM, Adi Marvillo <a...@gmx.at> wrote:
>
>> Hello everyone - I am trying hard to rip my own DVD collection onto my
>> fileserver but it doesn't work properly.
>> Input-streams are:
>> Stream #0:0: Data: dvd_nav_packet
>> Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576
>> [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc
>> Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
>>
>> I made a list of the biggest files on the DVD which are supposed to be
>> the entire film if concatenated.
>> files adi@HOST ~/Videos $ cat mylist.txt
>> file '/media/cdrom/video_ts/vts_09_1.vob'
>> file '/media/cdrom/video_ts/vts_09_2.vob'
>> file '/media/cdrom/video_ts/vts_09_3.vob'
>> file '/media/cdrom/video_ts/vts_09_4.vob'
>> file '/media/cdrom/video_ts/vts_09_5.vob'
>> file '/media/cdrom/video_ts/vts_09_6.vob'
>>
>> DVDs do have copy-protection. In my experience, some DVDs will rip well
> with the CLI tool "dvdbackup," however I've had significant issues when
> coming to backing up D!sn3y discs. My preferred way is to use MakeMKV
> (there's a linux version available), decrypt to the local HDD, then run
> FFmpeg on the resulting single file (which does still contain chapter
> information). It looks like you are reading directly from the CD, so that
> could be part of the issue there.
>
>
>> the command to start ripping is this one:
>> avconv -safe 0 -f concat -i mylist.txt -g 25 -keyint_min 3 -aspect
>> "16:9" -map 0:1 -c:v libx264 -map 0:2 -c:a copy ~/Videos/testvideo.mkv
>>
>> My CLI for ripping DVD's is roughly:
> ffmpeg -i movie.mkv -vf crop=NumbersHere,fieldmatch,decimate -c:a
> libfdk_aac -b:a 384k -c:v libx264 -preset veryfast -crf 18 -tune film
> -movflags +faststart movie.mp4
>
> *I compile FFmpeg from source, and include the FDK AAC codec. Unless you
> compile, you won't get this encoder option.
> *CRF 18 I've found to be a good balance of filesize/quality for DVD
> material. For Blu-Ray rips, 

[FFmpeg-user] Rip DVD with ffmpeg

2018-02-21 Thread Adi Marvillo
Hello everyone - I am trying hard to rip my own DVD collection onto my
fileserver but it doesn't work properly.
Input-streams are:
Stream #0:0: Data: dvd_nav_packet
Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576
[SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s

I made a list of the biggest files on the DVD which are supposed to be
the entire film if concatenated.
files adi@HOST ~/Videos $ cat mylist.txt
file '/media/cdrom/video_ts/vts_09_1.vob'
file '/media/cdrom/video_ts/vts_09_2.vob'
file '/media/cdrom/video_ts/vts_09_3.vob'
file '/media/cdrom/video_ts/vts_09_4.vob'
file '/media/cdrom/video_ts/vts_09_5.vob'
file '/media/cdrom/video_ts/vts_09_6.vob'

the command to start ripping is this one:
avconv -safe 0 -f concat -i mylist.txt -g 25 -keyint_min 3 -aspect
"16:9" -map 0:1 -c:v libx264 -map 0:2 -c:a copy ~/Videos/testvideo.mkv

Error message after half an hour:
Non-monotonous DTS in output stream 0:1; previous: 17992, current:
17960; changing to 17992. This may result in incorrect timestamps in the
output file.

As much as I understood the options "-copyts -start_at_zero" sync the
timestamp=1 with the beginning of the video-track and don't check it
afterwards... So I thought, I'll bind the timestamp to the begin of the
video-stream
avconv -safe 0 -f concat -i mylist13.txt -g 25 -keyint_min 3 -vf
"crop=x=22:out_w=in_w-52:y=4:out_h=in_h-6" -aspect "16:9" -map 0:1 -c:v
libx264 -map 0:2 -c:a copy ~/Videos/testvideo.mkv -copyts -start_at_zero

Same error again. I searched a lot and couldn't find any solution to my
Problem - maybe anybody has an advice?

Then I tried to encode the audio-track as a new:

adi@HOST ~/Videos $ avconv -safe 0 -f concat -i mylist.txt -ss 00:18:15
-t 00:00:30 -g 25 -keyint_min 3 -vf
"crop=x=22:out_w=in_w-52:y=4:out_h=in_h-6" -aspect "16:9" -map 0:1 -c:v
libx264 -map 0:2 -c:a ac3_fixed ~/Videos/testvideo.mkv
ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libebur128 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzmq --enable-libzvbi --enable-omx --enable-openal
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264
--enable-shared
  libavutil  55. 34.101 / 55. 34.101
  libavcodec 57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter 6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale  4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, concat, from 'mylist13.txt':
  Duration: N/A, start: 0.00, bitrate: N/A
    Stream #0:0: Data: dvd_nav_packet
    Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first),
720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
[libx264 @ 0x5581377c0120] using SAR=760/501
[libx264 @ 0x5581377c0120] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.1 Cache64
[libx264 @ 0x5581377c0120] profile High, level 3.0
[libx264 @ 0x5581377c0120] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4
AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=3
scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to '/home/adi/Videos/testvideo.mkv':
  Metadata:
    encoder : Lavf57.56.101
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p,
668x570 [SAR 760:501 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
  encoder : Lavc57.64.101 libx264
    Side data: