Bonjour à tous!
Je désespère d'arriver à mes fins: j'enregistre des films avec mythtv. J'obtiens de gros fichiers que j'aimerais convertir avec un seul logiciel, avconv. Seulement je n'arrive pas à prendre les sous-titres. J'ai bien lu le tuto sur ffmpeg, mais je n'arrive à reproduire le résultat escompté...
Je fais des tests avec ce fichier, lu avec vlc:
avconv -i /media/trocilius/98e873ff-9177-4f2c-b0df-1ce183c1b0d0/gravity/Gravity.mkv
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Aug 10 2014 18:19:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, matroska,webm, from '/media/trocilius/98e873ff-9177-4f2c-b0df-1ce183c1b0d0/gravity/Gravity.mkv':
Metadata:
TITLE : GRAVITY
Duration: 01:27:15.96, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.000000, end 756.560000
Metadata:
title : Chapter 1
Chapter #0.1: start 756.560000, end 1240.600000
Metadata:
title : Chapter 2
Chapter #0.2: start 1240.600000, end 1680.920000
Metadata:
title : Chapter 3
Chapter #0.3: start 1680.920000, end 2301.600000
Metadata:
title : Chapter 4
Chapter #0.4: start 2301.600000, end 2809.120000
Metadata:
title : Chapter 5
Chapter #0.5: start 2809.120000, end 3280.600000
Metadata:
title : Chapter 6
Chapter #0.6: start 3280.600000, end 3921.000000
Metadata:
title : Chapter 7
Chapter #0.7: start 3921.000000, end 4341.760000
Metadata:
title : Chapter 8
Chapter #0.8: start 4341.760000, end 4824.560000
Metadata:
title : Chapter 9
Chapter #0.9: start 4824.560000, end 5235.960000
Metadata:
title : Chapter 10
Stream #0.0(eng): Video: h264 (Main), yuv420p, 718x428 [PAR 64:45 DAR 11488:4815], PAR 155:109 DAR 55645:23326, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s (default)
Stream #0.2(fre): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s
Stream #0.3(fre): Subtitle: dvdsub (default)
At least one output file must be specified
Pourriez-vous me donner une commande d'exemple qui fonctionne pour obtenir un fichier encapsulé en MP4? parce que avec l'option -map, je n'y comprend plus rien!
Enfin voici un exemple de fichier que je voudrais encoder, pour sortir du format .nuv utilisé par Mythtv:
avconv -i /media/trocilius/98e873ff-9177-4f2c-b0df-1ce183c1b0d0/1051_20141026195500.mpg
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Aug 10 2014 18:19:26 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS referenced
[h264 @ 0x83e4620] non-existing SPS 0 referenced in buffering period
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] non-existing PPS 0 referenced
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] no frame!
[h264 @ 0x83e4620] mmco: unref short failure
Last message repeated 1 times
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] mmco: unref short failure
Last message repeated 1 times
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] mmco: unref short failure
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] mmco: unref short failure
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] mmco: unref short failure
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
Non-reference picture received and no reference available
[h264 @ 0x83e4620] decode_slice_header error
[h264 @ 0x83e4620] mmco: unref short failure
[h264 @ 0x83e4620] Missing reference picture
Last message repeated 5 times
[h264 @ 0x83e4620] mmco: unref short failure
Last message repeated 2 times
[mpegts @ 0x83df2e0] max_analyze_duration reached
[NULL @ 0x8400020] start time is not set in estimate_timings_from_pts
[mpegts @ 0x83df2e0] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from '/media/trocilius/98e873ff-9177-4f2c-b0df-1ce183c1b0d0/1051_20141026195500.mpg':
Duration: 02:59:59.68, start: 90760.074456, bitrate: 6978 kb/s
Program 1
Stream #0.0[0x78]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x82](fra): Audio: eac3, 48000 Hz, stereo, fltp, 128 kb/s
Stream #0.2[0x83](qaa): Audio: eac3, 48000 Hz, stereo, fltp, 128 kb/s
Stream #0.3[0x84](qad): Audio: eac3, 48000 Hz, stereo, fltp, 128 kb/s
Stream #0.4[0x8c](fra): Subtitle: dvbsub (hearing impaired)
Stream #0.5[0x8d](fra): Subtitle: dvbsub
Stream #0.6[0xaa]: Data: [5][0][0][0] / 0x0005
At least one output file must be specified
L'idée géniale, c"est de récupérer la video, les 2 flux audio et le sous-titrage (Stream #0.5[0x8d](fra): Subtitle: dvbsub). Les métadata ne m'intéressent pas. La vidéo et l'audio je gère bien grâce à ceci:
avconv -i /media/trocilius/98e873ff-9177-4f2c-b0df-1ce183c1b0d0/1051_20141026195500.mpg -ss 00:10:30 -t 00:00:30 -s 1920x1080 -b 8000K -vcodec libx264 -acodec mp3 /home/trocilius/Vidéos/essaipotterpistesaudio6.mp4
Le gros problème c'et les sous-titrages.
Merci d'avance!