How to get DVB-Teletxt into MP4
Hi. I could use a little help. I have a file with several streams and a DVB-Teletext stream with subtitles. I have been looking in the Wiki, but i am unable to get the subtitles encoded into my mp4 file. I keep getting different errors. Video and sound is np problem. I know how to get that encoded I want the stream 0:1:2 dan or all of them to be encoded to my file. I have tried with this: ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy mov_text -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4' And other combinations, but it won't work. So what is the correct commandline to get it work for this file: Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg
Please post the complete/uncut command output to the list, it's important. And if you haven't tried the most current version, try that. z!
This is the output: [h264 @ 0x2232c70] Increasing reorder buffer to 2 [mpegts @ 0x222d490] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x222d490] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg [NULL @ 0x255b3e0] Unable to find a suitable output format for 'mov_text' mov_text: Invalid argument Den 08-02-2020 kl. 19:41 skrev Carl Zwanzig:
Please post the complete/uncut command output to the list, it's important. And if you haven't tried the most current version, try that.
z! _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On 2/8/2020 10:45 AM, Robin A. Jensen via ffmpeg-user wrote:
This is the output: [...]
That is not the complete/un-cut output (with all the headers/etc). We want to see the version and compile options (from the command prompt to the next command prompt). Also, please don't top-post on this mailing list. Later, z!
Den 08-02-2020 kl. 19:48 skrev Carl Zwanzig:
On 2/8/2020 10:45 AM, Robin A. Jensen via ffmpeg-user wrote:
This is the output: [...]
That is not the complete/un-cut output (with all the headers/etc). We want to see the version and compile options (from the command prompt to the next command prompt).
Also, please don't top-post on this mailing list.
Later,
z! _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
I don't know what you mean with top-post mailing list. I just use button "Answer list, so now i m,ove answer to buttom of mail. This is the output: ffmpeg version git-2019-09-25-55b3258 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 58.101 / 58. 58.101 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 58.102 / 7. 58.102 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x1cfdc70] Increasing reorder buffer to 2 [mpegts @ 0x1cf8490] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x1cf8490] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg [NULL @ 0x20263e0] Unable to find a suitable output format for 'mov_text' mov_text: Invalid argument
On 2020-02-08 19:38, Robin A. Jensen via ffmpeg-user wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy mov_text -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4' [NULL @ 0x255b3e0] Unable to find a suitable output format for 'mov_text'
You have a syntax error i your command line. You are trying to write to a file called "mov_text_ and ffmpeg doesn't know what format that is supposed to be so gives you that error.
-c:s:0 copy mov_text
Make up your mind. codec copy or codec mov_text?
Den 08-02-2020 kl. 20:06 skrev James Darnley:
On 2020-02-08 19:38, Robin A. Jensen via ffmpeg-user wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy mov_text -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4' [NULL @ 0x255b3e0] Unable to find a suitable output format for 'mov_text' You have a syntax error i your command line. You are trying to write to a file called "mov_text_ and ffmpeg doesn't know what format that is supposed to be so gives you that error.
-c:s:0 copy mov_text Make up your mind. codec copy or codec mov_text?
ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". That command is in the wiki. Apparently it used because of the mp4. This is the command:
*-scodec* [/*subtitle codec*/] for*MP4* containers:|*copy*|,|*mov_text If i remove it: ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4 ffmpeg version git-2019-09-25-55b3258 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 58.101 / 58. 58.101 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 58.102 / 7. 58.102 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x35bfbb0] Increasing reorder buffer to 2 [mpegts @ 0x35ba3d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x35ba3d0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character *|
Den 08-02-2020 kl. 20:12 skrev Robin A. Jensen via ffmpeg-user:
Den 08-02-2020 kl. 20:06 skrev James Darnley:
On 2020-02-08 19:38, Robin A. Jensen via ffmpeg-user wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy mov_text -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4' [NULL @ 0x255b3e0] Unable to find a suitable output format for 'mov_text' You have a syntax error i your command line. You are trying to write to a file called "mov_text_ and ffmpeg doesn't know what format that is supposed to be so gives you that error.
-c:s:0 copy mov_text Make up your mind. codec copy or codec mov_text?
ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". That command is in the wiki. Apparently it used because of the mp4. This is the command:
*-scodec* [/*subtitle codec*/] for*MP4* containers:|*copy*|,|*mov_text If i remove it: ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4 ffmpeg version git-2019-09-25-55b3258 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 58.101 / 58. 58.101 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 58.102 / 7. 58.102 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x35bfbb0] Increasing reorder buffer to 2 [mpegts @ 0x35ba3d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x35ba3d0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character *|
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
I don't really care. What ever works. I just wan't the text to be in my encoded movie. either all of them so i can pick it in Kodi or just one of them. I'm trying all kind of different commands to make it work. Thats why i turned to this mailling list, to get a solution that would work.
On 2020-02-08T20:12:32+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
Den 08-02-2020 kl. 20:06 skrev James Darnley:
On 2020-02-08 19:38, Robin A. Jensen via ffmpeg-user wrote:
-c:s:0 copy mov_text Make up your mind. codec copy or codec mov_text? That command is in the wiki. Apparently it used because of the mp4. This is the command:
*-scodec* [/*subtitle codec*/] for*MP4* containers:|*copy*|,|*mov_text
That's https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/subtitle_options#... I take it? You noticed it says "parameter example*s*"? Plural! Meaning it's either "copy", or "mov_text". Not both. So it's -c:s:0 mov_text what you want. On 2020-02-08T20:01:31+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I don't know what you mean with top-post mailing list. I just use button "Answer list, so now i m,ove answer to buttom of mail.
You could've used Google to find out of course, but posting your answer beneath the quoted message (or "bottom-posting") is exactly the etiquette here. Next time please remove the footer (from "ffmpeg-user mailing list" downward) as well. -- Reino
Den 08-02-2020 kl. 20:38 skrev Reino Wijnsma:
On 2020-02-08T20:12:32+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
Den 08-02-2020 kl. 20:06 skrev James Darnley:
On 2020-02-08 19:38, Robin A. Jensen via ffmpeg-user wrote:
-c:s:0 copy mov_text Make up your mind. codec copy or codec mov_text? That command is in the wiki. Apparently it used because of the mp4. This is the command:
*-scodec* [/*subtitle codec*/] for*MP4* containers:|*copy*|,|*mov_text That's https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/subtitle_options#... I take it? You noticed it says "parameter example*s*"? Plural! Meaning it's either "copy", or "mov_text". Not both. So it's -c:s:0 mov_text what you want. No one of them is getting me any closer. Just the same error: ffmpeg version git-2019-09-25-55b3258 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 58.101 / 58. 58.101 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 58.102 / 7. 58.102 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x22cbbb0] Increasing reorder buffer to 2 [mpegts @ 0x22c63d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x22c63d0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 mov_text -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4'r _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0 ffmpeg version git-2019-09-25-55b3258 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 58.101 / 58. 58.101 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 58.102 / 7. 58.102 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x1b5dbb0] Increasing reorder buffer to 2 [mpegts @ 0x1b583d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x1b583d0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character
On 2020-02-08T20:01:31+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I don't know what you mean with top-post mailing list. I just use button "Answer list, so now i m,ove answer to buttom of mail. You could've used Google to find out of course, but posting your answer beneath the quoted message (or "bottom-posting") is exactly the etiquette here. Next time please remove the footer (from "ffmpeg-user mailing list" downward) as well.
-- Reino
I did use google but the answer on the mailing list, did get me any clear to the answer.
On 2020-02-08T20:47:35+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
No one of them is getting me any closer. Just the same error: [...] Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character
I'm no FFmpeg expert, but from what I can find this probably means certain characters can't be converted to mov_text. I'm not sure though. On 2020-02-08T20:12:32+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4
I don't have any experience with a Raspberry Pi, but I can't believe putting both -c:v h264_mmal and -c:v h264_omx in your commandline would work. Except for the video-bitrate you're not changing anything else, so why not do a streamcopy instead?Also the order of your options matters. Could you try: ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:2 -map 0:3 -c copy -map 0:1 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4' -- Reino
Den 08-02-2020 kl. 21:22 skrev Reino Wijnsma:
On 2020-02-08T20:47:35+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
No one of them is getting me any closer. Just the same error: [...] Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character I'm no FFmpeg expert, but from what I can find this probably means certain characters can't be converted to mov_text. I'm not sure though.
On 2020-02-08T20:12:32+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4 Yes you are right. Apparently "ø" is the issue. So i change it. I don't have any experience with a Raspberry Pi, but I can't believe putting both -c:v h264_mmal and -c:v h264_omx in your commandline would work. Except for the video-bitrate you're not changing anything else, so why not do a streamcopy instead?Also the order of your options matters. Could you try:
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:2 -map 0:3 -c copy -map 0:1 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4'
-- Reino Yes it works. -c:v h264_mmal is command for using GPU to decode. -c:v h264_omx is to encode. I know make som change after being reading on Stackexchange. I think i'm down to missing the decoder for DVB_Teletext (--enable-libzvbi)
So i might to compile FFMPEG all over again.
Den 08-02-2020 kl. 21:47 skrev Robin A. Jensen via ffmpeg-user:
Den 08-02-2020 kl. 21:22 skrev Reino Wijnsma:
On 2020-02-08T20:47:35+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
No one of them is getting me any closer. Just the same error: [...] Stream #0:4[0x12]: Data: epg Beck Øje for øje (4).mp4: Invalid or incomplete multibyte or wide character I'm no FFmpeg expert, but from what I can find this probably means certain characters can't be converted to mov_text. I'm not sure though.
On 2020-02-08T20:12:32+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:1 -map 0:2 -c:v h264_omx -b:v 4800k -c:a:0 copy -c:s:0 copy -metadata:0:1:2 language=dan 'Beck Øje for øje (4).mp4 Yes you are right. Apparently "ø" is the issue. So i change it. I don't have any experience with a Raspberry Pi, but I can't believe putting both -c:v h264_mmal and -c:v h264_omx in your commandline would work. Except for the video-bitrate you're not changing anything else, so why not do a streamcopy instead?Also the order of your options matters. Could you try:
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -map 0:2 -map 0:3 -c copy -map 0:1 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4'
-- Reino Yes it works. -c:v h264_mmal is command for using GPU to decode. -c:v h264_omx is to encode. I know make som change after being reading on Stackexchange. I think i'm down to missing the decoder for DVB_Teletext (--enable-libzvbi)
So i might to compile FFMPEG all over again.
_______________________________________________ Now i'm trying a new approach. I actually got the dvb text out of the dvb_teletext into a seperate .srt file. But now i have a new issue. I do not only get the subtitle i need but all of them. So when playing the .mp4 with .srt on Kodi, my screens is filled with all 4 subtitles! I do extract with this command: ffmpeg -txt_format text -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:s:2 language=dan 'Beck _je for _je (4).srt' So how do i get only the one subtitle that i need?
On 2020-02-09T00:15:43+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
Now i'm trying a new approach. I actually got the dvb text out of the dvb_teletext into a seperate .srt file. But now i have a new issue. I do not only get the subtitle i need but all of them. So when playing the .mp4 with .srt on Kodi, my screens is filled with all 4 subtitles! I do extract with this command: ffmpeg -txt_format text -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:s:2 language=dan 'Beck _je for _je (4).srt' So how do i get only the one subtitle that i need?
Could you share your 15sec ts-file so that we can have a look? Otherwise I don't have any idea what you're talking about. Also please tell us exactly what your expected output needs to be. And btw, you put your reply in the same blockquote as your previous e-mail/post, which is quite confusing. So please put your reply underneath the blockquote, not in it. -- Reino
Den 09-02-2020 kl. 00:45 skrev Reino Wijnsma:
On 2020-02-09T00:15:43+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
Now i'm trying a new approach. I actually got the dvb text out of the dvb_teletext into a seperate .srt file. But now i have a new issue. I do not only get the subtitle i need but all of them. So when playing the .mp4 with .srt on Kodi, my screens is filled with all 4 subtitles! I do extract with this command: ffmpeg -txt_format text -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:s:2 language=dan 'Beck _je for _je (4).srt' So how do i get only the one subtitle that i need? Could you share your 15sec ts-file so that we can have a look? Otherwise I don't have any idea what you're talking about. Also please tell us exactly what your expected output needs to be.
And btw, you put your reply in the same blockquote as your previous e-mail/post, which is quite confusing. So please put your reply underneath the blockquote, not in it.
-- Reino _______________________________________________
I think i finally got the solution. How ever it seems på be a long way to go. I can't get it to work in one operation. I have been looking on alot of examples on the mailing list, ffmpeg wiki and stack exchange. So now i found the way to get the one subtitle that i need, with this: ffmpeg -txt_format text -txt_page 599 -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:2 language=dan 'Beck _je for _je (4).srt' The -txt_page number i get by using VLC. So now i have the .srt file. Don't know how else to get ffmpeg to pick that one subtitle. Then i encode my video as i always do. Then i combine it with: ffmpeg -i 'Beck _je for _je (4).mp4' -i 'Beck _je for _je (4).srt' -c:v copy -c:a copy -c:s mov_text 'test.mp4' This seems to be working. But is a long way to go.
On 2020-02-09T01:59:53+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -txt_format text -txt_page 599 -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:2 language=dan 'Beck _je for _je (4).srt' The -txt_page number i get by using VLC. So now i have the .srt file. Don't know how else to get ffmpeg to pick that one subtitle. Then i encode my video as i always do. Then i combine it with: ffmpeg -i 'Beck _je for _je (4).mp4' -i 'Beck _je for _je (4).srt' -c:v copy -c:a copy -c:s mov_text 'test.mp4' This seems to be working. But is a long way to go.
ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -map 0:3 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4' Wouldn't this work? But again, without a sample we can't verify. -- Reino
Den 09-02-2020 kl. 02:19 skrev Reino Wijnsma:
On 2020-02-09T01:59:53+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -txt_format text -txt_page 599 -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:2 language=dan 'Beck _je for _je (4).srt' The -txt_page number i get by using VLC. So now i have the .srt file. Don't know how else to get ffmpeg to pick that one subtitle. Then i encode my video as i always do. Then i combine it with: ffmpeg -i 'Beck _je for _je (4).mp4' -i 'Beck _je for _je (4).srt' -c:v copy -c:a copy -c:s mov_text 'test.mp4' This seems to be working. But is a long way to go. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -map 0:3 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4'
Wouldn't this work? But again, without a sample we can't verify.
-- Reino _______________________________________________ I can give it a try, when the encoding is finished. It runs right now. But i will first be tomorrow. It could be nice if its working, so it could be done in one operation. I dont have 15 sec sample. I have 1:42:01 .TS file. I just use those 15 seconds cut out for testing, so i don't have to wait 1:30:00 hour to se the result.
On 2020-02-09T02:29:18+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I dont have 15 sec sample.
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -c copy sample.ts -- Reino
Am 09.02.2020 um 02:38 schrieb Reino Wijnsma <rwijnsma@xs4all.nl>:
On 2020-02-09T02:29:18+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote: I dont have 15 sec sample.
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -c copy sample.ts
NO! Don’t use ffmpeg to cut your samples, avoid it at all costs! dd is your friend. Carl Eugen
Carl Eugen Hoyos wrote:
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -c copy sample.ts
NO!
Don’t use ffmpeg to cut your samples, avoid it at all costs! dd is your friend.
_______________________________________________ ffmpeg-user mailing list
Seriously? ffmpeg-user says don't use ffmpeg. "ffprobe, tell me what byte next I-frame starts at." "I can't do that Dave."
On 2020-02-09 05:23, S Andreason wrote:
Carl Eugen Hoyos wrote:
ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -c copy sample.ts
NO!
Don’t use ffmpeg to cut your samples, avoid it at all costs! dd is your friend.
_______________________________________________ ffmpeg-user mailing list
Seriously? ffmpeg-user says don't use ffmpeg.
"ffprobe, tell me what byte next I-frame starts at."
"I can't do that Dave."
The point is that ffmpeg does not copy the input file to the output file and stop when "something" says 5 minutes. ffmpeg will read and parse until it finds the "start" then it'll demux the streams and start providing frames. At this point ffmpeg will select what streams are put into the output. The output then starts receiving frames and begins to mux them. If you want to provide a sample of the *input file*, why would you want all that ^ done to it?
Den 09-02-2020 kl. 02:38 skrev Reino Wijnsma:
On 2020-02-09T02:29:18+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I dont have 15 sec sample. ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -c copy sample.ts
-- Reino _______________________________________________ I just made a sample as you describe. But i think it is useless as the copy only contains video, sound and no dvb_teletext.
On 2020-02-09T01:59:53+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -txt_format text -txt_page 599 -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:2 language=dan 'Beck _je for _je (4).srt' The -txt_page number i get by using VLC. So now i have the .srt file. Don't know how else to get ffmpeg to pick that one subtitle. Then i encode my video as i always do. Then i combine it with: ffmpeg -i 'Beck _je for _je (4).mp4' -i 'Beck _je for _je (4).srt' -c:v copy -c:a copy -c:s mov_text 'test.mp4' This seems to be working. But is a long way to go. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -map 0:3 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4'
Wouldn't this work? But again, without a sample we can't verify.
-- Reino _______________________________________________
Hey Reino. Just a test as you suggestet, but it will create a new error. I correctet the channels that need to be encoded. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck _je for _je (4).mp4' ffmpeg version git-2020-02-08-adea33f Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal --enable-libzvbi libavutil 56. 39.100 / 56. 39.100 libavcodec 58. 68.100 / 58. 68.100 libavformat 58. 38.100 / 58. 38.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 75.100 / 7. 75.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x3579c90] Increasing reorder buffer to 2 [mpegts @ 0x35744d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x35744d0] PES packet size mismatch [mpegts @ 0x35744d0] Packet corrupt (stream = 2, dts = 3024240201). [mpegts @ 0x35744d0] PES packet size mismatch [mpegts @ 0x35744d0] Packet corrupt (stream = 3, dts = 3024240201). Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg File 'Beck _je for _je (4).mp4' already exists. Overwrite? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx)) Stream #0:2 -> #0:1 (copy) Stream #0:1 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> mov_text (native)) Error while opening encoder for output stream #0:2 - maybe incorrect
Den 09-02-2020 kl. 02:19 skrev Reino Wijnsma: parameters such as bit_rate, rate, width or height
Den 09-02-2020 kl. 15:16 skrev Robin A. Jensen via ffmpeg-user:
On 2020-02-09T01:59:53+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
ffmpeg -txt_format text -txt_page 599 -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:s:0 -c:s:2 mov_text -metadata:s:2 language=dan 'Beck _je for _je (4).srt' The -txt_page number i get by using VLC. So now i have the .srt file. Don't know how else to get ffmpeg to pick that one subtitle. Then i encode my video as i always do. Then i combine it with: ffmpeg -i 'Beck _je for _je (4).mp4' -i 'Beck _je for _je (4).srt' -c:v copy -c:a copy -c:s mov_text 'test.mp4' This seems to be working. But is a long way to go. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -map 0:3 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck Øje for øje (4).mp4'
Wouldn't this work? But again, without a sample we can't verify.
-- Reino _______________________________________________
Hey Reino. Just a test as you suggestet, but it will create a new error. I correctet the channels that need to be encoded. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck _je for _je (4).mp4' ffmpeg version git-2020-02-08-adea33f Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armhf --enable-gpl --enable-nonfree --enable-omx --enable-omx-rpi --enable-mmal --enable-libzvbi libavutil 56. 39.100 / 56. 39.100 libavcodec 58. 68.100 / 58. 68.100 libavformat 58. 38.100 / 58. 38.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 75.100 / 7. 75.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 [h264 @ 0x3579c90] Increasing reorder buffer to 2 [mpegts @ 0x35744d0] start time for stream 4 is not set in estimate_timings_from_pts [mpegts @ 0x35744d0] PES packet size mismatch [mpegts @ 0x35744d0] Packet corrupt (stream = 2, dts = 3024240201). [mpegts @ 0x35744d0] PES packet size mismatch [mpegts @ 0x35744d0] Packet corrupt (stream = 3, dts = 3024240201). Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg File 'Beck _je for _je (4).mp4' already exists. Overwrite? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx)) Stream #0:2 -> #0:1 (copy) Stream #0:1 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> mov_text (native)) Error while opening encoder for output stream #0:2 - maybe incorrect
Den 09-02-2020 kl. 02:19 skrev Reino Wijnsma: parameters such as bit_rate, rate, width or height _______________________________________________
I finally got the right commandline. I'll provide this solution for others, so they don't have to spend so much time on a simple task. Input file info: Input #0, mpegts, from 'Beck_ _je for _je (4).ts': Duration: 01:42:01.16, start: 27482.817233, bitrate: 9647 kb/s Program 7310 Metadata: service_name : C More Hits service_provider: YouSee Stream #0:0[0x99c]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x99e](swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:2[0x9a2](dan): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:3[0x9a3](nor): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s No Program Stream #0:4[0x12]: Data: epg To be encided: Video 0:0, Audio 0:2 and subtitle stream 0:1:2 (dan) It's importent to have -txt_format text -txt_page 599 -fix_sub_duration in front of input file. The number for txt_page 599 is found by playing file in VLC and choose the subtitle needed. It will be showed in the tele-text area. -fix_sub_duration will ensure that the subtitle is showed one by one. Without it, first subtitle come on to screen. Then the second will push the first one up on screen. The third subtitle will push 1. and 2. subtitle up and after 5 subtitles, your screen is full of subtitles! So i ended up with this commandline for the file: ffmpeg -txt_format text -txt_page 599 -fix_sub_duration -ss 00:02:40 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 01:32:10 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -c:a copy -map 0:1 -c:s:0 mov_text -metadata:s:s language=dan 'Beck(4).mp4' Issue is closed.
On 2020-02-09T17:43:39+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I finally got the right commandline. I'll provide this solution for others, so they don't have to spend so much time on a simple task. Ah, you already found out. And with practically the same commandline. I'm glad you succeeded.
-- Reino
On 2020-02-09T14:41:23+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
I just made a sample as you describe. But i think it is useless as the copy only contains video, sound and no dvb_teletext.
I forgot -map 0 to return ALL input streams, so: ffmpeg -ss 00:04:45 -i 'Beck_ _je for _je (4).ts' -to 00:05:00 *-map 0* -c copy sample.ts BUT apparently this is not the recommended method. I wish Carl, instead of shouting to avoid this at all cost, would explain WHY. I found https://ffmpeg.org/pipermail/ffmpeg-user/2019-October/045728.html. I understand... dd if=input.ts bs=188 skip=27888 count=55775 of=output.ts ...for instance would skip 188*27888=5242944bytes (around 5M) and extract 188*55775=10485700 (around 10M), but I don't understand where the 188 comes from. Also, I think it's very hard to find out what amount of bytes equates to 00:04:45, or isn't it? On 2020-02-09T15:16:30+0100, Robin A. Jensen via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote:
Hey Reino. Just a test as you suggestet, but it will create a new error. I correctet the channels that need to be encoded. ffmpeg -ss 00:04:45 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -c:a copy -map 0:1 -txt_format text -txt_page 599 -c:s mov_text -metadata:s:s language=dan 'Beck _je for _je (4).mp4' [...] Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx)) Stream #0:2 -> #0:1 (copy) Stream #0:1 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> mov_text (native)) Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height
What I understand from this https://ffmpeg.org/pipermail/ffmpeg-user/2016-February/030792.html huge thread is that the libzvbi-options are actually input-options and that -fix_sub_duration is probably needed, so... ffmpeg -ss 00:04:45 -fix_sub_duration -txt_format text -txt_page 599 -c:v h264_mmal -i 'Beck_ _je for _je (4).ts' -to 00:05:00 -map 0:0 -c:v h264_omx -b:v 4800k -map 0:2 -c:a copy -map 0:1 -c:s mov_text -metadata:s:s language=dan 'Beck _je for _je (4).mp4' ...could be worth a try. -- Reino
On 2/9/2020 8:51 AM, Reino Wijnsma wrote:
...for instance would skip 188*27888=5242944bytes (around 5M) and extract 188*55775=10485700 (around 10M), but I don't understand where the 188 comes from.
Packet size of an mpeg transport stream, but I only knew that from some work a few years ago. z!
participants (6)
-
Carl Eugen Hoyos -
Carl Zwanzig -
James Darnley -
Reino Wijnsma -
Robin A. Jensen -
S Andreason