VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Dec 2013
    Location
    California
    Search Comp PM
    I am involved in an Avid editing project where i need to turn all Ustream downloaded FLVs into Mp4s so they can be recognized in Avid AMA bins. I generally use WinFF to do conversion which works great.

    I have one 3hr 45min file that at about 18 minutes in frame size changes from 640x480 to 480x360. I can't get past this point in mp4 conversion. How can i repair and get entire 3hrs 45min into healthy mp4 file? I can see the whole thing play online on Ustream fine.

    Here are the first pass settings in WinFF:

    "C:\Program Files\WinFF\ffmpeg.exe" -y -i "P:\!_AMA-Videos-Tomabo\TimCast_(TimPool)-FLV-download\Timcast January 1, 2012 1 53 AM.flv" -crf 15.0 -vcodec libx264 -acodec libvo_aacenc -r:a 192 -b:a 44.1k -coder 1 -rc_lookahead 60 -threads 0 -r:v 23.976 -b:a 44.1k -ac 2 -vf scale=640:480 "P:\!_AMA-Videos-Tomabo\TimCast_(TimPool)-FLV-download\Timcast January 1, 2012 1 53 AM.mp4"

    Here is FFmpeg command line

    chcp 1252

    title Converting Timcast January 1, 2012 1 53 AM.flv (1/1)
    "C:\Program Files\WinFF\ffmpeg.exe" -y -i "P:\!_AMA-Videos-Tomabo\TimCast_(TimPool)-FLV-download\Timcast January 1, 2012 1 53 AM.flv" -crf 15.0 -vcodec libx264 -acodec libvo_aacenc -r:a 192 -b:a 44.1k -coder 1 -rc_lookahead 60 -threads 0 -r:v 23.976 -b:a 44.1k -ac 2 -vf scale=640:480 "P:\!_AMA-Videos-Tomabo\TimCast_(TimPool)-FLV-download\Timcast January 1, 2012 1 53 AM.mp4"

    del "C:\Users\Arthur Klein\AppData\Roaming\Winff\ff131220235833.bat"


    I think both are the same but i am a newbie to WinFFmpeg



    Here is the part of Log that mentions issue before the Convert ends incomplete

    frame=25681 fps=116 q=20.0 size= 379264kB time=00:17:51.29 bitrate=2900.2kbits/
    frame=25745 fps=116 q=20.0 size= 380239kB time=00:17:53.89 bitrate=2900.6kbits/
    frame=25810 fps=116 q=20.0 size= 381158kB time=00:17:56.58 bitrate=2900.3kbits/
    frame=25876 fps=116 q=20.0 size= 381743kB time=00:17:59.37 bitrate=2897.3kbits/
    [h264 @ 000000000c210400] AVC: nal size 21102622
    Last message repeated 1 times
    Last message repeated 1 times
    [flv @ 000000000250bce0] [h264 @ 000000000c210400] Stream discovered after head
    already parsed
    no frame!
    [flv @ 000000000250bce0] New audio stream 0:3 at pos:130670702 and DTS:1081.19s
    Error while decoding stream #0:0: Invalid data found when processing input
    frame=25934 fps=116 q=20.0 size= 382336kB time=00:18:01.13 bitrate=2897.0kbits/
    [flv @ 000000000250bce0] Stream discovered after head already parsed
    [flv @ 000000000250bce0] New video stream 0:4 at pos:130909259 and DTS:1082.19s
    frame=25940 fps=116 q=20.0 size= 382429kB time=00:18:01.13 bitrate=2897.7kbits/
    [h264 @ 000000000c210400] Reinit context to 480x368, pix_fmt: 0
    Input stream #0:0 frame changed from size:640x480 fmt:yuv420p to size:480x360 fm
    t:yuv420p



    Thank you in advance for your help....

    @theGuruWithin
    http://arthurklein.com
    Quote Quote  
  2. afaik ffmpeg can't handle such files (where audio channel count, video resolution, stream formats, or stream ids change)
    -> don't think ffmpeg is the right tool for the job
    vlc might be able to handle such files
    personally I would probably try to split the stream into two parts and process the parts separately
    Quote Quote  
  3. Member
    Join Date
    Dec 2013
    Location
    California
    Search Comp PM
    Thank you for your response. I came up with different solution:

    Since file would play online directly from Ustream with no problem.... I decided to you use Open Broadcast Software a community open source screen recorder. I recorded entire 3 hours directly to file (which is one of OBS's options). The resulting file would play in VLC but wouldn't AMA into AVID so i cleansed it with Handbreak using Auto Crop feature which i haven't seen anywhere else. and now the task has been successfully completed and i am able to edit what was the corrupted media.....
    Quote Quote  



Similar Threads

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