On 2016-03-05 19:39, Carlos E. R. wrote:
cer@Telcontar:~/Videos/Fusion/trabajo> time ffmpeg -i Las\ 13\ claves\ del\ Apolo\ 13\
\ Episodio\ 1.mpeg -target dv dv
ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
...
Input #0, mpegts, from 'Las 13 claves del Apolo 13 Episodio 1.mpeg':
Duration: 01:05:02.62, start: 1.049322, bitrate: 2299 kb/s
Program 1
Stream #0:0[0x1e1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg),
720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1e2](esp): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p,
192 kb/s (clean effects)
Stream #0:2[0x1e3](vo): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p,
128 kb/s (clean effects)
Could not determine norm (PAL/NTSC/NTSC-Film) for target.
Please prefix target with "pal-", "ntsc-" or "film-",
or set a framerate with "-r xxx".
real 0m0.126s
user 0m0.113s
sys 0m0.012s
cer@Telcontar:~/Videos/Fusion/trabajo>
Huh? Framerate? Can't it read the framrate from input? Ok...
cer@Telcontar:~/Videos/Fusion/trabajo> time ffmpeg -r 25 -i Las\ 13\ claves\ del\
Apolo\ 13\ \ Episodio\ 1.mpeg -target dv dv
...
Could not determine norm (PAL/NTSC/NTSC-Film) for target.
Please prefix target with "pal-", "ntsc-" or "film-",
or set a framerate with "-r xxx".
But I'm already using "-r xxx"! Ok, I'll use "-target film-dv"
or "pal-dv".
Somewhere mid video it finds sync problems. However, I can play the converted file. One
audio track, and I'm unsure how to specify more when using "-target dv".
Sigh. Reading manual again.
By default, ffmpeg includes only one stream of each type (video, audio, subtitle)
present in the input
files and adds them to each output file. It picks the "best" of each
based upon the following criteria:
for video, it is the stream with the highest resolution, for audio, it is the
stream with the most
channels, for subtitles, it is the first subtitle stream. In the case where several
streams of the same
type rate equally, the stream with the lowest index is chosen.
You can disable some of those defaults by using the "-vn/-an/-sn"
options. For full manual control, use
the "-map" option, which disables the defaults just described.
It doesn't say an option to "include all streams"! :-(
-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]] |
[linklabel] (output)
The first "-map" option on the command line specifies the source for
output stream 0, the second
"-map" option specifies the source for output stream 1, etc.
So it should be -map 0:0 -map 0:1 -map 0:3 to include the three streams in the same
order.
But:
cer@Telcontar:~/Videos/Fusion/trabajo> time ffmpeg -i Las\ 13\ claves\ del\ Apolo\ 13\
\ Episodio\ 1.mpeg -map 0:0 -map 0:1 -map 0:2 -target pal-dv dv-pal
ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (SUSE Linux)
...
Input #0, mpegts, from 'Las 13 claves del Apolo 13 Episodio 1.mpeg':
Duration: 01:05:02.62, start: 1.049322, bitrate: 2299 kb/s
Program 1
Stream #0:0[0x1e1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg),
720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1e2](esp): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p,
192 kb/s (clean effects)
Stream #0:2[0x1e3](vo): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p,
128 kb/s (clean effects)
File 'dv-pal' already exists. Overwrite ? [y/N] y
[dv @ 0x1bc92c0] Can't initialize DV format!
Make sure that you supply exactly two streams:
<=======================================
video: 25fps or 29.97fps, audio: 2ch/48|44|32kHz/PCM
(50Mbps allows an optional second audio stream)
Output #0, dv, to 'dv-pal':
Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:11 DAR 20:11], q=2-31, 200 kb/s,
25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc57.24.102 dvvideo
Stream #0:1(esp): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (clean effects)
Metadata:
encoder : Lavc57.24.102 pcm_s16le
Stream #0:2(vo): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (clean effects)
Metadata:
encoder : Lavc57.24.102 pcm_s16le
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> dvvideo (native))
Stream #0:1 -> #0:1 (mp2 (native) -> pcm_s16le (native))
Stream #0:2 -> #0:2 (mp2 (native) -> pcm_s16le (native))
Could not write header for output file #0 (incorrect codec parameters ?): Operation not
permitted
real 0m2.878s
user 0m0.115s
sys 0m0.020s
cer@Telcontar:~/Videos/Fusion/trabajo>
It seems that "DV" only allows two tracks, so I can't do the second
language.
There is a comment above which I do not understand: "50Mbps allows an optional second
audio stream". Where?
--
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)