VideoHelp Forum




+ Reply to Thread
Results 1 to 23 of 23
  1. What is the flag to save rtmp mp4 streams as mp4 files, using youtube-dl & rtmpdump ?

    I'm using the -o flag with rtmpdump to save the file as a FLV, but I want to save as a MP4 instead; not sure whether I must do it in youtube-dl or rtmpdump, considering youtube-dl gets the stream, my assumption is rtmpdump ?
    Quote Quote  
  2. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    You would need to use ffmpeg to mux the flv to mp4.
    Quote Quote  
  3. youtube-dl can't strictly get the MP4 file, even if the actual file online is a MP4 ?
    Quote Quote  
  4. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    youtube-dl video-url --list-formats

    Note the format code of the mp4.

    youtube-dl video-url -F # -o video.mp4



    or


    youtube-dl video-url -f '(mp4)[height=resolution]' -o video.mp4

    where resolution is 480, 720, 1080, etc...
    Quote Quote  
  5. There are no MP4 format videos, only FLV, can I encode from FLV to MP4 using rtmpdump ?
    Last edited by PowerFalcon; 20th Oct 2015 at 17:10.
    Quote Quote  
  6. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    rtmpdump is only a stream ripper, it does not encode or remux. You will need to use ffmpeg as I mentioned above.

    This is the general ffmpeg command line you would use.
    It will remux the flv container to a mp4 container.
    Video and audio will be stream copied and not re-encoded.


    ffmpeg -i video.flv -c:v copy -c:a copy video.mp4
    Quote Quote  
  7. Originally Posted by Vidd View Post
    rtmpdump is only a stream ripper, it does not encode or remux. You will need to use ffmpeg as I mentioned above.

    This is the general ffmpeg command line you would use.
    It will remux the flv container to a mp4 container.
    Video and audio will be stream copied and not re-encoded.


    ffmpeg -i video.flv -c:v copy -c:a copy video.mp4
    That command produces a; Output file #0 does not contain any stream error ?
    Quote Quote  
  8. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    What is the video and audio codec of the flv? It may be codec that ffmpeg can't put in a mp4 container such as VP6.

    In that case remove the copy commands and instead have ffmpeg encode h264 video and aac audio.

    Something like:

    -codec:v libx264
    -codec:a libfdk_aac

    In the ffmpeg documentation you can find the other switches for profiles/bit rate/ etc.....

    https://trac.ffmpeg.org/wiki/Encode/H.264
    https://trac.ffmpeg.org/wiki/Encode/AAC
    Quote Quote  
  9. I don't know the video and audio codec of the file.
    ffmpeg 19-Octvideo.flv -codec:v libx264 -codec:a libfdk_aac videotyrr.mp4
    Error: Output file #0 does not contain any stream ?
    Quote Quote  
  10. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    Are you putting the input switch -i before 19-Octvideo.flv?

    -i 19-Octvideo.flv



    But since ffmpeg is giving you problems, another option is to use AviDemux to convert the flv to mp4 instead of ffmpeg.
    Quote Quote  
  11. Adding the -i flag produces a new error; Unknown encoder 'libfdk_aac' ?

    I'm trying mp2 audio codec, as that codec didn't fire any errors.
    Last edited by PowerFalcon; 21st Oct 2015 at 12:37.
    Quote Quote  
  12. works for me
    latest ffmpeg 2.8.1


    you must tell ffmpeg the path and filename
    input.flv is in C:\
    then put your audio and video options "-acodec libmp3lame -ar 48000 -vcodec libx264"
    then save to C:\
    as output.mp4

    easy


    Code:
    ffmpeg -i c:\input.flv -acodec libmp3lame -ar 48000 -vcodec libx264 c:\output.mp4
    Last edited by bobit; 21st Oct 2015 at 15:21.
    Quote Quote  
  13. This worked; ffmpeg -i 19-Oct.flv -codec:v libx264 -codec:a mp2 videotyrr.mp4

    This didn't; ffmpeg -i c:\input.flv -acodec libmp3lame -ar 44100 -vcodec libx264 c:\output.mp4 - let me upgrade ffmpeg
    Quote Quote  
  14. Audio & Video at both MP4 worked out successfully; considering I don't know any information of the FLV file to which I am encoding.

    I'd prefer to play around with various encoding formats; not knowing I will benefit from what is working, it's worth a try
    Quote Quote  
  15. you must be using
    1920's ffmpeg lol

    use the latest

    you can find info of the flv with vlc

    Tools > Codec information > codec tab

    tells you what audio and video codecs are in that file


    cant see how you coverted a file with ffmpeg
    when you did not tell ffmpeg where the input file was ?
    Last edited by bobit; 21st Oct 2015 at 15:38.
    Quote Quote  
  16. The format of the video must be MP4, the audio for the video file can depend.

    cant see how you coverted a file with ffmpeg
    when you did not tell ffmpeg where the input file was ?
    The input file and output file were both in the same folder.

    I'm going to upgrade ffmpeg and update my results.
    Quote Quote  
  17. Originally Posted by PowerFalcon View Post
    The format of the video must be MP4, the audio for the video file can depend.

    ?????????????
    Quote Quote  
  18. In other words, I must decode the FLV to strictly MP4 video, but the audio of the FLV file can be encoded to any format, so long as there isn't a second delay in the audio or it sounds horrible.
    Quote Quote  
  19. your device only play mp4 then

    no mkv, avi, vob flv

    lol
    Quote Quote  
  20. I prefer MP4, my device plays FLV (not all) as well as h.264 & mkv.
    Quote Quote  
  21. you have enigma2 sat receiver ?
    Quote Quote  
  22. No, Roku2!
    Quote Quote  
  23. The FLV files are AVC1 (h264) and Audio is AAC, from what I find about the file info.
    Quote Quote  



Similar Threads

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