I am recording both tv and radio channels with my mythtv installation, and the resulting mpg files for radio channels only have (obviously) one audio track.
The software we use to process video is able to get the tv (video+audio) mpgs just fine, but it chokes with the radio ones, because the files doesn't contain a video track.
What would be the easiest way of adding a black/white frame for the whole (arbitrary) length of the mpg?
I am trying to run this on a linux box by the way, so I have the usual suspects to help (ffmpeg, mencoder, etc etc)
This is the output I get from mediainfo on the file I get from mythtv
Code:General ID : 3F4 Complete name : 535 (RNE1) - Mon Sep 20 06-00-00 2010.mpg..mpg Format : MPEG-TS File size : 404 MiB Duration : 59mn 41s Overall bit rate : 947 Kbps Audio ID : 2001 (0x7D1) Menu ID : 1 (0x1) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 59mn 41s Bit rate mode : Constant Bit rate : 192 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 82.0 MiB (20%) Language : Spanish
+ Reply to Thread
Results 1 to 6 of 6
-
Last edited by nublaii; 20th Sep 2010 at 05:56. Reason: Adding some info about the input mpg
-
Maybe something like
Code:ffmpeg -loop_input -r 1 -i image.jpg -i video.mpg -acodec copy video.mpg
edit: too slow....
-
Yup... I was checking it on a 1 hour long file. Went to lunch and 2 hours later it was still going...
-
I tried it with a small image, and it was really fast, but apparently our system requires real video frame size, so in the end I had to trade speed for compatibility.
This is what I did to generate a black frame
Code:convert -size 720x576 xc:black canvas.jpg
Code:/usr/bin/ffmpeg -loop_input -i canvas.jpg -i \"$filename\" -shortest -f mpegts -acodec copy \"$tmpfile\" >> \"$tmpdir/remuxradio.log\" 2>> \"$tmpdir/remuxradio.log\"
Similar Threads
-
How to add new subtitles to an existing DVD
By Baldrick in forum User guidesReplies: 432Last Post: 28th Dec 2022, 13:36 -
How to add new subtitles to an existing video DVD?
By Newsense in forum LinuxReplies: 4Last Post: 18th Sep 2008, 17:08 -
How do I add new subtitles to a existing DVD?
By Baldrick in forum SubtitleReplies: 7Last Post: 14th May 2008, 09:42 -
Add menu to existing DVD?
By MilesAhead in forum SVCD2DVD & VOB2MPGReplies: 2Last Post: 2nd May 2008, 17:56 -
Please tell me how to add sound to an existing DVD
By moviebuff2 in forum EditingReplies: 0Last Post: 16th Aug 2007, 13:19