VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Hi!
    I'm currently trying to re-wrap H.264 .mov files using FFmpeg to Mpeg TS without transcoding. I'm basically just trying to copy the audio and video stream into a Mpeg Transport stream. I've gotten the video to copy over fine but the audio won't come over even though FFmpeg is saying that it is. The command I'm using is:

    ffmpeg -i original.mov -vbsf h264_mp4toannexb -vcodec copy -acodec copy new.mpeg

    Video comes over fine re-wrapped as .mpeg but the audio is either not present (media info corroborates this) or shows up as a 2kb Mpeg audio stream which is basically empty. Any ideas?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Any errors in the ffmpeg output?
    What is the audio codec in the mov?

    You could also try remux with tsmuxer(command line and gui).
    Quote Quote  
  3. No errors in the output. I'm waiting on another test to finish and i'll post the full output. Audio codec is PCM 48/16. Tried just a straight copy and re-encoding the audio to AAC to no avail.
    I can't get tsmuxer to open on my mac. Would I want to run this on my .mov before trying to re-wrap the file?
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Maybe try "-f mpegts new.ts" instead of new.mpeg
    Quote Quote  
  5. Tried -f mpegts with the same result. Here's the output log if this gives you any clues:


    ffmpeg version N-38772-gc2e3b56 Copyright (c) 2000-2012 the FFmpeg developers
    built on Mar 14 2012 11:38:51 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
    configuration:
    libavutil 51. 42.100 / 51. 42.100
    libavcodec 54. 10.100 / 54. 10.100
    libavformat 54. 2.100 / 54. 2.100
    libavdevice 53. 4.100 / 53. 4.100
    libavfilter 2. 64.101 / 2. 64.101
    libswscale 2. 1.100 / 2. 1.100
    libswresample 0. 7.100 / 0. 7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/peteroleksik1/Desktop/447_1975.mov':
    Metadata:
    major_brand : qt
    minor_version : 537199360
    compatible_brands: qt
    creation_time : 2012-02-24 15:27:20
    Duration: 00:06:25.65, start: 0.000000, bitrate: 12405 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 10:11 DAR 15:11], 10991 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc
    Metadata:
    creation_time : 2012-02-24 15:27:20
    handler_name : ?Gestionnaire d?alias Apple
    Stream #0:1(eng): Audio: pcm_s16le (lpcm / 0x6D63706C), 44100 Hz, 2 channels, s16, 1411 kb/s
    Metadata:
    creation_time : 2012-02-24 15:27:20
    handler_name : ?Gestionnaire d?alias Apple
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
    creation_time : 2012-02-24 15:27:20
    handler_name : ?Gestionnaire d?alias Apple
    timecode : 01:00:00;00
    File '/Users/peteroleksik1/Desktop/new.mpeg' already exists. Overwrite ? [y/N] y
    muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
    Output #0, mpegts, to '/Users/peteroleksik1/Desktop/new.mpeg':
    Metadata:
    major_brand : qt
    minor_version : 537199360
    compatible_brands: qt
    creation_time : 2012-02-24 15:27:20
    encoder : Lavf54.2.100
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x480 [SAR 10:11 DAR 15:11], q=2-31, 10991 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
    Metadata:
    creation_time : 2012-02-24 15:27:20
    handler_name : ?Gestionnaire d?alias Apple
    Stream #0:1(eng): Audio: pcm_s16le (lpcm / 0x6D63706C), 44100 Hz, 2 channels, 1411 kb/s
    Metadata:
    creation_time : 2012-02-24 15:27:20
    handler_name : ?Gestionnaire d?alias Apple
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame= 259 fps=0.0 q=-1.0 size= 12687kB time=00:00:08.64 bitrate=12026.8kbitsframe= 475 fps=470 q=-1.0 size= 23170kB time=00:00:15.84 bitrate=11976.1kbitsframe= 676 fps=407 q=-1.0 size= 32944kB time=00:00:22.55 bitrate=11964.8kbitsframe= 833 fps=379 q=-1.0 size= 40536kB time=00:00:27.79 bitrate=11947.4kbitsframe= 856 fps=308 q=-1.0 size= 41647kB time=00:00:28.56 bitrate=11944.9kbitsframe= 869 fps=264 q=-1.0 size= 42249kB time=00:00:28.99 bitrate=11936.3kbitsframe= 884 fps=232 q=-1.0 size= 42285kB time=00:00:29.00 bitrate=11944.9kbitsframe= 1052 fps=242 q=-1.0 size= 50959kB time=00:00:35.00 bitrate=11927.2kbitsframe= 1365 fps=273 q=-1.0 size= 66188kB time=00:00:45.54 bitrate=11904.9kbitsframe= 1667 fps=303 q=-1.0 size= 80856kB time=00:00:55.62 bitrate=11908.4kbitsframe= 1860 fps=306 q=-1.0 size= 90143kB time=00:01:02.00 bitrate=11910.5kbitsframe= 2173 fps=330 q=-1.0 size= 105301kB time=00:01:12.50 bitrate=11897.4kbitsframe= 2383 fps=330 q=-1.0 size= 115404kB time=00:01:19.51 bitrate=11889.7kbitsframe= 2662 fps=344 q=-1.0 size= 129013kB time=00:01:28.82 bitrate=11898.7kbitsframe= 2875 fps=346 q=-1.0 size= 139316kB time=00:01:35.92 bitrate=11897.1kbitsframe= 3109 fps=353 q=-1.0 size= 150672kB time=00:01:43.73 bitrate=11898.4kbitsframe= 3384 fps=358 q=-1.0 size= 163924kB time=00:01:52.91 bitrate=11892.9kbitsframe= 3726 fps=374 q=-1.0 size= 180022kB time=00:02:04.00 bitrate=11893.1kbitsframe= 3891 fps=372 q=-1.0 size= 188462kB time=00:02:09.82 bitrate=11891.6kbitsframe= 4139 fps=377 q=-1.0 size= 200325kB time=00:02:18.00 bitrate=11891.7kbitsframe= 4399 fps=382 q=-1.0 size= 213077kB time=00:02:26.78 bitrate=11892.1kbitsframe= 4655 fps=387 q=-1.0 size= 225011kB time=00:02:35.00 bitrate=11892.2kbitsframe= 4907 fps=389 q=-1.0 size= 237655kB time=00:02:43.73 bitrate=11890.7kbitsframe= 5130 fps=390 q=-1.0 size= 248175kB time=00:02:51.00 bitrate=11889.2kbitsframe= 5409 fps=396 q=-1.0 size= 261903kB time=00:03:00.48 bitrate=11887.8kbitsframe= 5589 fps=394 q=-1.0 size= 270632kB time=00:03:06.48 bitrate=11888.4kbitsframe= 5781 fps=394 q=-1.0 size= 279910kB time=00:03:12.89 bitrate=11887.5kbitsframe= 6098 fps=397 q=-1.0 size= 295258kB time=00:03:23.47 bitrate=11887.5kbitsframe= 6432 fps=402 q=-1.0 size= 311363kB time=00:03:34.61 bitrate=11884.9kbitsframe= 6608 fps=398 q=-1.0 size= 319894kB time=00:03:40.48 bitrate=11885.4kbitsframe= 6848 fps=400 q=-1.0 size= 331472kB time=00:03:48.49 bitrate=11883.9kbitsframe= 7117 fps=402 q=-1.0 size= 344553kB time=00:03:57.47 bitrate=11886.0kbitsframe= 7315 fps=401 q=-1.0 size= 354031kB time=00:04:04.00 bitrate=11886.2kbitsframe= 7626 fps=405 q=-1.0 size= 369134kB time=00:04:14.45 bitrate=11884.0kbitsframe= 7859 fps=407 q=-1.0 size= 380131kB time=00:04:22.00 bitrate=11885.6kbitsframe= 8136 fps=408 q=-1.0 size= 393785kB time=00:04:31.47 bitrate=11883.0kbitsframe= 8327 fps=407 q=-1.0 size= 403104kB time=00:04:37.84 bitrate=11885.2kbitsframe= 8645 fps=410 q=-1.0 size= 418509kB time=00:04:48.45 bitrate=11885.5kbitsframe= 8838 fps=409 q=-1.0 size= 427833kB time=00:04:54.89 bitrate=11885.0kbitsframe= 9103 fps=412 q=-1.0 size= 440588kB time=00:05:03.73 bitrate=11883.0kbitsframe= 9312 fps=411 q=-1.0 size= 450741kB time=00:05:10.71 bitrate=11883.9kbitsframe= 9548 fps=412 q=-1.0 size= 462178kB time=00:05:18.58 bitrate=11884.3kbitsframe= 9808 fps=414 q=-1.0 size= 474363kB time=00:05:27.00 bitrate=11883.7kbitsframe= 9861 fps=406 q=-1.0 size= 477222kB time=00:05:29.00 bitrate=11882.7kbitsframe= 9993 fps=403 q=-1.0 size= 483615kB time=00:05:33.43 bitrate=11881.8kbitsframe=10183 fps=403 q=-1.0 size= 492769kB time=00:05:39.77 bitrate=11880.8kbitsframe=10373 fps=402 q=-1.0 size= 501753kB time=00:05:46.00 bitrate=11879.7kbitsframe=10670 fps=404 q=-1.0 size= 516299kB time=00:05:56.00 bitrate=11880.7kbitsframe=10952 fps=407 q=-1.0 size= 530005kB time=00:06:05.43 bitrate=11881.3kbitsframe=11166 fps=408 q=-1.0 size= 540240kB time=00:06:12.57 bitrate=11878.6kbitsframe=11345 fps=406 q=-1.0 size= 549054kB time=00:06:18.54 bitrate=11881.9kbitsframe=11558 fps=408 q=-1.0 Lsize= 559337kB time=00:06:25.00 bitrate=11901.5kbits/s
    video:517431kB audio:2kB global headers:0kB muxing overhead 8.098579%
    Quote Quote  
  6. It's unorthodox, but if the audio stream is ffmpeg compatible, then opening the original video in Audacity will automatically strip the audio for you. From there you can save it off as anything you desire. I do it all the time with mp4's, mov's, and .ts files. Much easier than command line.

    I'm using Windows though, with the Ffmpeg Import/export libraries, lame and other plugins.
    Not sure how the Mac would handle it but it works fine for me.


    Edit: I know it doesn't answer the instruction problem, I mention for convenience only.

    https://forum.videohelp.com/threads/308001-Demux-mux-mov
    Last edited by transporterfan; 21st Mar 2012 at 11:50.
    Quote Quote  



Similar Threads

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