VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. 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
    Last edited by nublaii; 20th Sep 2010 at 05:56. Reason: Adding some info about the input mpg
    Quote Quote  
  2. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    ..
    Last edited by bat999; 22nd Sep 2010 at 05:31.
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Maybe something like
    Code:
    ffmpeg -loop_input -r 1 -i image.jpg -i video.mpg -acodec copy video.mpg
    image.jpg is just an image you make and video.mpg is your source video.


    edit: too slow....
    Quote Quote  
  4. Yup... I was checking it on a 1 hour long file. Went to lunch and 2 hours later it was still going...
    Quote Quote  
  5. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    ..
    Last edited by bat999; 22nd Sep 2010 at 05:31.
    Quote Quote  
  6. 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
    And this is the line I used to put it in

    Code:
    /usr/bin/ffmpeg -loop_input -i canvas.jpg -i \"$filename\" -shortest -f mpegts -acodec copy \"$tmpfile\" >> \"$tmpdir/remuxradio.log\" 2>> \"$tmpdir/remuxradio.log\"
    Tnx
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!